﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class FormUpdate : Form
    {
        public int no;
        public string cname;
        public string customername;
        public int amount;
        

        public FormUpdate()
        {
            InitializeComponent();
            //o1 = new OrderExer.Order();
           // service = s;
            //bindingSource1.DataSource = service.orderList;
            
        }

        private void bindingSource1_CurrentChanged(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {

            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {

            //bindingSource1.DataSource = service.orderList.Where(s => s.OrderNo == int.Parse(textBox1.Text));
            no = int.Parse(textBox1.Text);
            cname = textBox2.Text;
            customername = textBox3.Text;
            amount = int.Parse(textBox4.Text);
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
